﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace SimpleOrmCFPC
{
    public static class DaoExtensions
    {
        public static T Read<T>(this IDao<T> dao, Func<T, bool> expression)
            where T : new()
        {
            return dao.Query.Where(expression).First();
        }
    }
}
